]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Grab screenshot during paint on X11
authorJonas Ådahl <jadahl@gmail.com>
Mon, 14 Dec 2020 14:11:37 +0000 (15:11 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 14 Dec 2020 14:21:03 +0000 (15:21 +0100)
commitc09be8b0a9395f5ce0c4210356f6532bd3bfa0c4
tree751bf653d51bcb090663ae1b7c3e08462969bd7b
parentf7019bdd0de73209dc40960904248de10421000a
screenshot: Grab screenshot during paint on X11

We might not be able to directly paint the stage to an offscreen, if
there currently is a fullscreen unredirected window. To make it possible
to take a screenshot in this situation, disable unredirecting, queue a
frame, and take a screenshot after having painted that frame, before we
go back being unredirected.

Don't do this on Wayland because it's a waste.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1453
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1534>
src/shell-screenshot.c